package spec.lijunyao.unit4.clazz.overload_final;

public final class Horse extends Animal {

    public Horse(String name) {
        super(name);
    }

    @Override
    void eat() {
        System.out.println(this.name + "吃草");
    }

//    @Override
//    void rest() {
//        System.out.println(this.name + "吃草");
//    }
}